import Header from "./header.js"
import Home from "../pages/home.js"

const template = `
<div id="vue">

    <Header :homeShow="homeShow" @input="changeShow" />
    
    <Home v-show="homeShow"/>

    <RouterView></RouterView>
    
</div>`

// App为根组件
export default {
    template,
    
    data(){
        return{
            homeShow:true
        }
    },
    methods:{
        changeShow(data){
            this.homeShow = data;
        }
    },
    components: {
        Header,
        Home
    }
}